package com.nhncorp.yammer.bean;

public enum PostColumn {
	POSTKEY("post_key"), CONTENT("content"), USERID("user_id"), CREATEDATE("create_date"), POSTTYPE("post_type"), COMMENTKEYLIST("comment_key_list");

	private final String name;

	PostColumn(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public static PostColumn find(String columnName) {
		for (PostColumn each : PostColumn.values()) {
			if (each.name.equals(columnName)) {
				return each;
			}
		}
		throw new IllegalArgumentException();
	}
}
